﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dixon_Q_Test
{
    class Element
    {
        private string Name;
        private float height;

        public Element()
        {
            this.Name = "No name";
            this.height = 0.99f;
        }
        public Element(string Name, float h)
        {
            this.Name = Name;
            this.height = h;
        }
        public Element(Element e)
        {
            this.Name = e.Name;
            this.height = e.height;
        }

        public string getName()
        {
            return this.Name;
        }

        public float getHeight()
        {
            return this.height;
        }

        public void setName(string name)
        {
            this.Name = name;
        }

        public void setHeight(float height)
        {
            this.height = height;
        }

        public void equal(Element newE)
        {
            this.height = newE.height;
            this.Name = newE.Name; 
        }

    }
}
